/**
 * creation: 14-mrt-2008
 */
package org.jfonia.connect.arithmetic;

import org.jfonia.connect.BasicNode;
import org.jfonia.connect.Value;

/**
 * @author wijnand.schepens@gmail.com
 *
 */
public class ConstantIntAddition extends BasicNode implements Value<Integer>
{
	private Value<Integer> source1;
	private int value2;
	
	public ConstantIntAddition(Value<Integer> source1, int value2)
	{
		super();
		this.source1 = source1;
		this.value2 = value2;
	}

	public Integer get()
	{
		return source1.get() + value2;
	}
	
	
}
